package com.dly.hope.webSocket.dto;

import com.dly.hope.dto.UserSocketDto;
import com.dly.hope.type.MessageType;
import com.dly.hope.type.SessionType;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author linyu.dai
 * @project myserve
 * @description 消息中转对象
 * @creat 2022/10/28 15:03:47
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class MessageDto {

    /**
     * 发送人
     */
    private UserSocketDto sendUserSocketDto;

    /**
     * 接收人
     */
    private UserSocketDto acceptUserSocketDto;

    /**
     * 消息主体
     */
    private String message;

    /**
     * 消息类型
     */
    private MessageType type;

    /**
     * 会话类型是群消息还是个人消息
     */
    private SessionType sessionType;
}
